package cn.template.models.exceptions;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.http.HttpStatus;

public class BadRequestException extends AppException {
    private static final Logger logger = LogManager.getLogger();

    public BadRequestException(String msg) {
        super(msg, HttpStatus.BAD_REQUEST);
        logger.warn(msg);
    }
}
